{% extends "base.html" %}
{% block content %}
    {% if form.errors %}
        <p>Your username and password didn't match. Please try again.</p>
    {% endif %}
    <form method="post" action="{% url 'users:login' %}">
        {% csrf_token %}
        {{ form.as_p }}
        <button name="submit">log in</button>
{#        隠されたのポストだ、自分のデータを提出したらURLにアクセスする#}
        <input type="hidden" name="next" value="{% url 'index:index' %}" />
    </form>
{% endblock content %}
